const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 令牌
  name: state => state.user.userInfo.username, // 用户名
  staffPhoto: state => state.user.userInfo.staffPhoto, // 用户的头像
  routes: state => state.permission.routes, // 所有的路由规则数组
  roles: state => state.user.userInfo.roles // 当前用户拥有的所有权限对象
}
export default getters
